package com.luaj.elasticsearch.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 卢安杰
 * @date 2020-11-20 19:29
 */
@Getter
@AllArgsConstructor
public enum EmBusinessError {
    URL_NOT_FOUND("10001","找不到对应的url"),
    REQUEST_BIND_ERROR("10002","请求参数绑定错误"),
    UNKOWN_EARROR("10003","未知错误"),



    ADMIN_SHOULD_LOGIN("20001","需要管理员权限"),
    PARAMETER_VALIDATION_ERROR("20002","参数验证失败"),
    ;

    private String code;
    private String msg;
}
